﻿using KZ.Express.Resource;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KZ.Express.ENT
{
    public class UserENT : EntityBase
    {
        public static int USERID = -100;

        public static int ROLEID = -100;

        [Output]
        public int UserID { get; set; }

        [Require]
        public string FullName { get; set; }

        [Require]
        public string Username { get; set; }

        [Require]
        public string Password { get; set; }

        public int? RoleID { get; set; }

        public int? CreatedBy { get; set; }

        [NotInsertUpdate]
        public DateTime? CreatedDate { get; set; }

        public int? UpdatedBy { get; set; }

        [NotInsertUpdate]
        public DateTime? UpdatedDate { get; set; }

        [NotInsertUpdate]
        public override string Table { get { return "Users"; } }

        /// <summary>
        /// proc_User_Insert
        /// </summary>
        [NotInsertUpdate]
        public override string InsertProcedure { get { return "proc_User_Insert"; } }

        /// <summary>
        /// proc_User_Update
        /// </summary>
        [NotInsertUpdate]
        public override string UpdateProcedure { get { return "proc_User_Update"; } }

        /// <summary>
        /// proc_User_Select
        /// </summary>
        [NotInsertUpdate]
        public override string SelectProcedure { get { return "proc_User_Select"; } }
    }
}
